package au.com.iglootech.winerymap.entity.dto;

import java.io.Serializable;
import java.util.Date;

import au.com.iglootech.winerymap.entity.WMUser;

/**
 * 
 * @author nicholas zhu
 * 
 */
public class WMUserDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4319083178276703039L;

	private String keyValue;
	private String username;
	private String emailAddress;
	private Date createdDate;
	private String userType;
	private String nickName;

	/**
	 * constructor.
	 */
	public WMUserDTO() {

	}

	/**
	 * 
	 * @param user
	 *            user
	 */
	public WMUserDTO(final WMUser user) {
		keyValue = user.getKeyValue();
		username = user.getUsername();
		emailAddress = user.getEmailAddress();
		createdDate = user.getCreatedDate();
		userType = user.getUserType().getName();
		nickName = user.getNickName();
	}

	/**
	 * @return the keyValue
	 */
	public String getKeyValue() {
		return keyValue;
	}

	/**
	 * @param keyValue
	 *            the keyValue to set
	 */
	public void setKeyValue(final String keyValue) {
		this.keyValue = keyValue;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username
	 *            the username to set
	 */
	public void setUsername(final String username) {
		this.username = username;
	}

	/**
	 * @return the emailAddress
	 */
	public String getEmailAddress() {
		return emailAddress;
	}

	/**
	 * @param emailAddress
	 *            the emailAddress to set
	 */
	public void setEmailAddress(final String emailAddress) {
		this.emailAddress = emailAddress;
	}

	/**
	 * @return the createdDate
	 */
	public Date getCreatedDate() {
		return createdDate;
	}

	/**
	 * @param createdDate
	 *            the createdDate to set
	 */
	public void setCreatedDate(final Date createdDate) {
		this.createdDate = createdDate;
	}

	/**
	 * @return the userType
	 */
	public String getUserType() {
		return userType;
	}

	/**
	 * @param userType
	 *            the userType to set
	 */
	public void setUserType(final String userType) {
		this.userType = userType;
	}

	/**
	 * @return the nickName
	 */
	public String getNickName() {
		return nickName;
	}

	/**
	 * @param nickName
	 *            the nickName to set
	 */
	public void setNickName(final String nickName) {
		this.nickName = nickName;
	}

}
